package babydiary.android.yml;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button addBabyButton; 
        addBabyButton = (Button)findViewById(R.id.addbabybutton);
        addBabyButton.setOnClickListener(new MyButtonListener());
    }
    
    class MyButtonListener implements OnClickListener{

		public void onClick(View v) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(MainActivity.this, AddBabyActivity.class);
			MainActivity.this.startActivity(intent);
		}
		
	}
}